//
//  HZRewardViewController.m
//  Stock_Stategy
//
//  Created by MayerF on 2017/6/1.
//  Copyright © 2017年 MayerF. All rights reserved.
//

#import "HZRewardViewController.h"
#import "HZRewardView.h"

@interface HZRewardViewController ()
@property(nonatomic,strong)HZRewardView *pRewardView;
@end

@implementation HZRewardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"策略回报";
    _pRewardView = [HZRewardView new];
    _pRewardView.parent = self;
    
    [self.view addSubview:_pRewardView];
    
    [_pRewardView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.mas_equalTo(self.view);
        make.left.mas_equalTo(self.view);
        make.right.mas_equalTo(self.view);
        make.bottom.mas_equalTo(self.view);
    }];
}
- (void)dealloc {
    DLog(@"HZRewardViewController销毁");
}
#pragma mark -
- (void)upToParentWithObjc:(id)objc withType:(NSInteger)type withParamter:(id)paramter{
    switch (type) {
        case kHZ_RewardListClick_Action:{
            UIViewController *nextVC = [[MYRouter shared] matchController:kRouterRewardDetail params:@{@"model":paramter}];
            [self.navigationController pushViewController:nextVC animated:YES];
        }
            break;
        default:
            break;
    }
}
@end
